/* 导航栏基础样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-navbar);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm) 0;
}

/* 导航栏容器 */
.navbar .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

/* 品牌/Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--spacing-sm) 0;
}

.navbar-brand i {
    color: var(--color-primary);
    font-size: 1.4em;
}

/* 导航菜单 */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 导航链接 */
.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-link:hover {
    color: var(--color-primary);
    background-color: rgba(40, 167, 69, 0.1);
}

.nav-link.active {
    color: var(--color-primary);
    background-color: rgba(40, 167, 69, 0.1);
}

/* 导航图标 */
.nav-link i {
    font-size: 1.1em;
    color: var(--color-primary);
}

/* 折叠按钮 */
.navbar-toggler {
    display: none;
    padding: var(--spacing-sm);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

/* 响应式导航 */
@media (max-width: 992px) {
    .navbar-toggler {
        display: block;
    }

    .navbar-collapse {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
    }

    .navbar-collapse.show {
        display: block;
    }

    .navbar-nav {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav-link {
        width: 100%;
        justify-content: center;
    }
}

/* 用户菜单 */
.navbar-user {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--bg-light);
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: var(--z-dropdown);
    min-width: 160px;
    padding: var(--spacing-xs) 0;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--color-primary);
} 